import request1 from "@/utils/request1";
// 传统报单列表
export function toList(query) {
    return request1({
        url: "admin/to/list",
        method: "post",
        data: query
    });
}
// 获取所有项目分类
export function getProjectList(query) {
    return request1({
        url: "admin/to/get_project_list",
        method: "post",
        data: query
    });
}
// 获取报单信息
export function toDetail(query) {
    return request1({
        url: "admin/to/detail",
        method: "post",
        data: query
    });
}
// 查看凭证
export function toViewCertification(query) {
    return request1({
        url: "admin/to/viewCertification",
        method: "post",
        data: query
    });
}
// 报单审核
export function toCheck(query) {
    return request1({
        url: "admin/to/check",
        method: "post",
        data: query
    });
}
// 获取经纬度
export function getLat(query) {
    return request1({
        url: 'getLat',
        method: 'get',
        params: query
    })
}
// 审核奖励信息详情
export function rewardList(query) {
    return request1({
        url: "convention_apply/reward_list",
        method: "post",
        data: query
    });
}
// 审核列表
export function reward(query) {
    return request1({
        url: "convention_apply/reward",
        method: "post",
        data: query
    });
}
// 获取用户推荐关系
export function get_ref(query) {
    return request1({
        url: "convention_apply/get_ref",
        method: "post",
        data: query
    });
}
// 导出
export function traditionExport(query) {
    return request1({
        url: "admin/to/tradition_order_export",
        method: "get",
        params: query,
        responseType: "blob"
    });
}
// 传统报单编辑admin/to/update
export function getUpdate(query) {
    return request1({
        url: "admin/to/update",
        method: "post",
        data: query
    });
}